package com.cowin.sys.service.impl;

import com.cowin.inf.model.vo.WorkMonitorShopVo;
import com.cowin.sys.dao.TmBasWorkshopMapper;
import com.cowin.sys.model.TmBasLine;
import com.cowin.sys.model.TmBasWorkshop;
import com.cowin.sys.model.vo.IdNameVo;
import com.cowin.sys.model.vo.LineVo;
import com.cowin.sys.service.TmBasWorkshopService;
import com.cowin.base.AbstractServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


/**
 * Created by  on 2019/10/30.
 * @author CodeGenerator
 */
@Slf4j
@Service
@Transactional(rollbackFor = RuntimeException.class)
public class TmBasWorkshopServiceImpl extends AbstractServiceImpl<TmBasWorkshop> implements TmBasWorkshopService {

    @Resource
    private TmBasWorkshopMapper tmBasWorkshopMapper;

    @Override
    public List<LineVo> findLineInfoByType(String type) {
        return tmBasWorkshopMapper.findLineInfoByType(type);
    }

    @Override
    public List<TmBasLine> getLineById(Long id) {
        return tmBasWorkshopMapper.getLineById(id);
    }

    @Override
    public List<WorkMonitorShopVo> getWorkShopMonitorInfo() {
        return tmBasWorkshopMapper.getWorkShopMonitorInfo();
    }
}
